package demo;

import java.util.Date;

public class Customer {
	
	static int count = 1;
	private int id;
	private String numCompte = "00-000";
	private String forName;
	private String name;
	private double soldeCompte;
	private Date dateNaissance;
	private int categorie;
	
	public int getCategorie() {
		return categorie;
	}

	public void setCategorie(int categorie) {
		this.categorie = categorie;
	}

	public Date getDateNaissance() {
		return dateNaissance;
	}

	public void setDateNaissance(Date dateNaissance) {
		this.dateNaissance = dateNaissance;
	}

	public double getSoldeCompte() {
		return soldeCompte;
	}

	public void setSoldeCompte(double soldeCompte) {
		this.soldeCompte = soldeCompte;
	}

	public Customer() {
		this.id = count++;
		this.dateNaissance = new Date();
	}	
	
	public Customer(String forName, String name) {
		super();
		this.id = count++;
		this.forName = forName;
		this.name = name;
		this.dateNaissance = new Date();
	}

	public String toString(){
		return id+" "+forName+" "+name;
	}	
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getForName() {
		return forName;
	}
	public void setForName(String forName) {
		this.forName = forName;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}

	public String getNumCompte() {
		return numCompte;
	}

	public void setNumCompte(String numCompte) {
		this.numCompte = numCompte;
	}
	
}
